package com.tang.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tang.crm.dto.UserDto;
import com.tang.crm.entity.User;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @MapKey("id")
    List<Map<String, Object>> queryALLSales();

    // 多条件的分页查询
    IPage<Map<String, Object>> selectByParams(IPage<User> page, @Param("params")UserDto userDto);

    List<Map<String, Object>> selectAllManagers();
}
